﻿
//Author: 张亚涛
//createtime:2015-12-15 23:09:25
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{

    /// <summary>
    /// 该类提供了一系列操作 "Member" 表的方法;
    /// </summary>
    public partial class MemberService
    {
        #region .对本表的维护.
        #region select data
        /// <summary>
        /// 返回Member表的所有数据  
        /// </summary>
        /// <returns></returns>        
        public static List<Member> GetAllMember()
        {
            return MemberBase.GetAllMember();
        }
        /// <summary>
        /// 根据Member表的MemberID字段返回数据  
        /// </summary>
        /// <param name="memberID">MemberID</param>
        /// <returns></returns>        
        public static Member GetMemberByMemberID(long memberID)
        {
            return MemberBase.GetMemberByMemberID(memberID);
        }
        #endregion
        #region delete data
        /// <summary>
        /// 根据Member表的MemberID字段删除数据 
        /// </summary>
        /// <param name="memberID">memberID</param>
        /// <returns>返回受影响的行数</returns>
        public static int DeleteMemberByMemberID(long memberID)
        {
            return MemberBase.DeleteMemberByMemberID(memberID);
        }
        #endregion
        #region update data
        /// <summary>
        /// 根据Member表的MemberID字段更新数据 
        /// </summary>
        /// <param name="memberID">MemberID</param>
        /// <param name="Member">member</param>
        /// <returns>返回受影响的行数</returns>
        public static int UpdateMemberByMemberID(Member member)
        {
            return MemberBase.UpdateMemberByMemberID(member);
        }
        #endregion
        #region insert data
        /// <summary>
        /// 向Member表插入一条数据，插入成功则返回自增列数值，插入不成功则返回-1 
        /// </summary>
        /// <param name="member">Member</param>        
        /// <returns></returns>
        public static int AddMember(Member member)
        {
            return MemberBase.AddMember(member);
        }
        #endregion
        #endregion

        #region .SQL语句汇总.
        /// <summary>
        /// 向Member表插入一条数据（SQL语句）
        /// </summary>
        /// <param name="m">Member</param>       
        /// <returns></returns>        
        public static string AddMember_SQL(Member m)
        {
            return MemberBase.AddMember_SQL(m);
        }
        /// <summary>
        /// 返回Member表的所有数据（SQL语句） 
        /// </summary>
        /// <returns></returns>        
        public static string GetAllMember_SQL()
        {
            return MemberBase.GetAllMember_SQL();
        }
        #endregion
    }
}